package com.cx.service.impl;

import com.cx.mapper.UserInfoMapper;
import com.cx.pojo.User;
import com.cx.service.PasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description GroupOneproject-IntelliJ IDEA
 * @Author Pyc
 * @Date 2020/5/17 14:25
 * @Version 1.0
 */

@Service
public class PasswordServiceImpl implements PasswordService {

    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public int changePassword(User user) {
        int result = userInfoMapper.updateUser(user);

        return result;
    }
}
